<?php
/* Navigation heirarchy configuration */

Configure::write('Navigation.tree',array(
	array('name'=>'HOME', 'url'=>'/'),
	array('name'=>'Employees', 'url'=>array('controller'=>'Employee', 'action'=>'index'), 'permission'=>'employee', 'children'=>array(
		array('name'=>'Clock In/Out', 'url'=>array('controller' => 'Employee', 'action' => 'clock')),
		array('name'=>'View Hours', 'url'=>array('controller'=>'Employee', 'action'=>'hours',0)),
		array('name'=>'Make Edit Request', 'url'=>array('controller'=>'Employee','action'=>'newhourrequest')),
		array('name'=>'View Edit Requests', 'url'=>array('controller'=>'Employee','action'=>'requests')),
		array('name'=>'Who`s Currently Working?', 'url'=>array('controller'=>'Employee','action'=>'currentlyworking')),
	)),
	array('name'=>'Managers', 'url'=>array('controller'=>'Manager', 'action'=>'index'), 'permission'=>'manager', 'children'=>array(
		array('name'=>'View Employee Hours', 'url'=>array('controller' => 'Manager', 'action' => 'index')),
		array('name'=>'View Requests', 'url'=>array('controller' => 'Manager', 'action' => 'reviewrequests')),
		array('name'=>'Create Hour', 'url'=>array('controller' => 'Manager', 'action' => 'edithour')),
		array('name'=>'Who`s Currently Working?', 'url'=>array('controller'=>'Manager','action'=>'currentlyworking')),
	)),
	array('name'=>'Administrators', 'url'=>array('controller'=>'Admin', 'action'=>'index'), 'permission'=>'admin', 'children'=>array(
		array('name'=>'Employees', 'url'=>array('controller' => 'Admin', 'action' => 'employees')),
		array('name'=>'Managers', 'url'=>array('controller' => 'Admin', 'action' => 'managers')),
		array('name'=>'Admins', 'url'=>array('controller' => 'Admin', 'action' => 'admins')),
		array('name'=>'Groups', 'url'=>array('controller' => 'Admin', 'action' => 'groups')),
		array('name'=>'Projects', 'url'=>array('controller' => 'Admin', 'action' => 'projects')),
	)),
));
